#include <stdio.h>
int main()
{
    char c = 0;
    while (scanf_s("%c", &c)!=EOF)
    {
        if (c > 'A' && c < 'z')
        {
            printf("YES\n");
            break;
        }
        else
            printf("NO\n");
    }
    return 0;
}